#define _CRT_SECURE_NO_WARNINGS
#include<assert.h>
#include"string.h"

#include<iostream>
#include<vector>
#include<list>
#include<string>
#include<algorithm>
using namespace std;
using std::cout;
using std::endl;


void test_list1()
{
	list<int> lt1 = { 1,2,3,4,5,6 };
	list<int>:: iterator it = lt1.begin();
	while (it != lt1.end())
	{
		cout << *it << " ";
		++it;
	}
	cout << endl;

	lt1.sort();
	//sort(lt1.begin()...)
	for(auto e:lt1)
	{
		cout << *it << " ";
		++it;
	}
	cout << endl;

}